package hy.service.impl;

import hy.beans.User;
import hy.dao.UserDao;
import hy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserDao dao;
    @Override
    public User getUserById(Integer id) {
        return dao.selectById(id);
    }

    @Override
    public List<User> getUsers(Long ... ids) {
        return dao.selectUserByIds(ids);
    }
}
